package cn.percent.controller;

import cn.percent.mvcframework.annotations.percentAutowired;
import cn.percent.mvcframework.annotations.percentController;
import cn.percent.mvcframework.annotations.percentRequestMapping;
import cn.percent.mvcframework.annotations.percentSecurity;
import cn.percent.service.IDemoService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@percentController
@percentRequestMapping("/account")

public class DemoController {

    @percentAutowired
    private IDemoService demoService;

    @percentSecurity({"lisi","wangwu"})
    @percentRequestMapping("/query")
    public String query(HttpServletRequest request, HttpServletResponse response,String name) {
        return demoService.get(name);
    }



}
